package com.ewanghuiju.app.widget.popupwindow;

import android.app.Activity;
import android.content.Context;
import android.view.View;

import com.ewanghuiju.app.R;

import butterknife.ButterKnife;
import butterknife.OnClick;
import me.jessyan.autosize.AutoSize;
import razerdp.basepopup.BasePopupWindow;

/**
 * @author sj  qq:751943509
 * @class 邮费弹框
 * @time 2020/2/19
 */
public class PintuanYoufeiPopup extends BasePopupWindow {


    public PintuanYoufeiPopup(Context context) {
        super(context);
        setWidth(getScreenWidth());
        ButterKnife.bind(this, getContentView());
    }

    @Override
    public View onCreateContentView() {
        return createPopupById(R.layout.popup_pintuan_youfei);
    }

    @OnClick({R.id.popup_close, R.id.popup_sure})
    public void doClick(View view) {
        int id = view.getId();
        switch (id) {
            case R.id.popup_close:
                dismissWithOutAnimate();
                break;
            case R.id.popup_sure:
                //确定按钮
                dismissWithOutAnimate();
                break;
            default:
                break;
        }
    }
}
